package components;

import com.uqbar.vainilla.DeltaState;
import components.scenes.Slot;

public class ChangingDirection extends WalkerState {

	public ChangingDirection(Walker aWalker) {
		super(aWalker);
	}

	
	public void update(DeltaState delta){
		this.getWalker().updateSlot();
		this.getWalker().updateDirection();
		
		this.getWalker().setCanMove(!this.getWalker().getMovingTo().isSolid());
		this.getWalker().setWalkerState(new Walking(this.getWalker()));	
	}
	
}
